package com.mashibing.serviceauth.request;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class SendVerificationCodeDTO {

    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^1[3,4,5,6,7,8,9]\\d{9}$",message = "请填写正确的手机号")
    private String phone;

    /**
     * 身份标识：1：乘客，2：司机
     */
    private String identity;

}
